package com.example.looktv

import org.fourthline.cling.UpnpServiceConfiguration
import org.fourthline.cling.android.AndroidUpnpServiceConfiguration
import org.fourthline.cling.model.types.ServiceType
import org.fourthline.cling.model.types.UDAServiceType

class BrowserUpnpService {
    protected fun createConfiguration(): UpnpServiceConfiguration? {
        return object : AndroidUpnpServiceConfiguration() {
            override fun getRegistryMaintenanceIntervalMillis(): Int {
                return 7000
            }

            override fun getExclusiveServiceTypes(): Array<ServiceType> {
                return arrayOf<ServiceType>(
                    UDAServiceType("SwitchPower")
                )
            }

        }
    }
}